package com.sjzsqjy.asdtiang.mysql;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * TraceUser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "trace_user", catalog = "hospital")
public class TraceUser implements java.io.Serializable {

	// Fields

	private String id;
	private Long version;
	private String sex;
	private String date;
	private String type;
	private String doctor;
	private String ageInfo;
	private String keShi;
	private String simpleId;
	private String name;
	private String sendDoctor;

	// Constructors

	/** default constructor */
	public TraceUser() {
	}

	/** minimal constructor */
	public TraceUser(Long version, String date, String type, String doctor,
			String keShi, String simpleId, String name) {
		this.version = version;
		this.date = date;
		this.type = type;
		this.doctor = doctor;
		this.keShi = keShi;
		this.simpleId = simpleId;
		this.name = name;
	}

	/** full constructor */
	public TraceUser(Long version, String sex, String date, String type,
			String doctor, String ageInfo, String keShi, String simpleId,
			String name, String sendDoctor) {
		this.version = version;
		this.sex = sex;
		this.date = date;
		this.type = type;
		this.doctor = doctor;
		this.ageInfo = ageInfo;
		this.keShi = keShi;
		this.simpleId = simpleId;
		this.name = name;
		this.sendDoctor = sendDoctor;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "version", nullable = false)
	public Long getVersion() {
		return this.version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}

	@Column(name = "sex")
	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@Column(name = "date", nullable = false)
	public String getDate() {
		return this.date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	@Column(name = "type", nullable = false)
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "doctor", nullable = false)
	public String getDoctor() {
		return this.doctor;
	}

	public void setDoctor(String doctor) {
		this.doctor = doctor;
	}

	@Column(name = "age_info")
	public String getAgeInfo() {
		return this.ageInfo;
	}

	public void setAgeInfo(String ageInfo) {
		this.ageInfo = ageInfo;
	}

	@Column(name = "ke_shi", nullable = false)
	public String getKeShi() {
		return this.keShi;
	}

	public void setKeShi(String keShi) {
		this.keShi = keShi;
	}

	@Column(name = "simple_id", nullable = false)
	public String getSimpleId() {
		return this.simpleId;
	}

	public void setSimpleId(String simpleId) {
		this.simpleId = simpleId;
	}

	@Column(name = "name", nullable = false)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "send_doctor")
	public String getSendDoctor() {
		return this.sendDoctor;
	}

	public void setSendDoctor(String sendDoctor) {
		this.sendDoctor = sendDoctor;
	}

}